package com.aaa.yq127.entity;

import java.io.Serializable;
import java.util.Date;

//实现序列化接口
public class Staff implements Serializable {

    //序列化id
    private static final long serialVersionUID = 1251725341905551409L;

    private Integer id;
    private Integer staffId;
    private String staffName;
    private String password;
    private String phone;
    private String idCard;
    private String address;
    private Date createdTime;
    private Date resignedTime;
    private Integer status;
    private Integer roleId;
    private Integer deptid;
    private String url;

    public Staff() {
    }

    public Staff(Integer id, Integer staffId, String staffName, String password, String phone, String idCard, String address, Date createdTime, Date resignedTime, Integer status, Integer roleId, Integer deptid, String url) {
        this.id = id;
        this.staffId = staffId;
        this.staffName = staffName;
        this.password = password;
        this.phone = phone;
        this.idCard = idCard;
        this.address = address;
        this.createdTime = createdTime;
        this.resignedTime = resignedTime;
        this.status = status;
        this.roleId = roleId;
        this.deptid = deptid;
        this.url = url;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getStaffId() {
        return staffId;
    }

    public void setStaffId(Integer staffId) {
        this.staffId = staffId;
    }

    public String getStaffName() {
        return staffName;
    }

    public void setStaffName(String staffName) {
        this.staffName = staffName;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getIdCard() {
        return idCard;
    }

    public void setIdCard(String idCard) {
        this.idCard = idCard;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public Date getCreatedTime() {
        return createdTime;
    }

    public void setCreatedTime(Date createdTime) {
        this.createdTime = createdTime;
    }

    public Date getResignedTime() {
        return resignedTime;
    }

    public void setResignedTime(Date resignedTime) {
        this.resignedTime = resignedTime;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Integer getRoleId() {
        return roleId;
    }

    public void setRoleId(Integer roleId) {
        this.roleId = roleId;
    }

    public Integer getDeptid() {
        return deptid;
    }

    public void setDeptid(Integer deptid) {
        this.deptid = deptid;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    @Override
    public String toString() {
        return "Staff{" +
                "id=" + id +
                ", staffId=" + staffId +
                ", staffName='" + staffName + '\'' +
                ", password='" + password + '\'' +
                ", phone='" + phone + '\'' +
                ", idCard='" + idCard + '\'' +
                ", address='" + address + '\'' +
                ", createdTime=" + createdTime +
                ", resignedTime=" + resignedTime +
                ", status=" + status +
                ", roleId=" + roleId +
                ", deptid=" + deptid +
                ", url='" + url + '\'' +
                '}';
    }
}
